#pages a{ display:inline-block; padding: 6px; border:1px solid #ddd; color: #666; text-decoration: none; font-size: 14px;}
#pages a:hover{ color: #007bff; }
#pages a.on{ border-color: #007bff; color: #007bff; }
.bg-dark{ background: rgba(0,0,0,.3) !important;  }
/* 外层容器：Flex 布局，默认水平排列 */
.process-detail .row {
  display: flex;
  flex-wrap: wrap; /* 自动换行，用于响应式 */
  gap: 1px; /* 项目之间的间隙（模拟边框） */
  border: 1px solid #ccc; /* 外层边框 */padding: 1px;
}
.leix a{ display: inline-block; border:1px solid #ddd; margin: 0 4px 4px 0; padding: 4px 6px; color: #333; font-size: 12px;}
.leix a:hover{ background: #007bff; color: #fff; border-color: #007bff; text-decoration: none; }
/* 悬浮按钮容器：固定在右侧中间位置 */
        .float-btn-container {
            position: fixed;
            bottom: 80px;
            right: 20px;
            transform: translateY(-50%);
            z-index: 999; /* 确保在最上层，不被其他内容遮挡 */
        }

        /* 单个悬浮按钮通用样式 */
        .float-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%; /* 圆形按钮 */
            background-color: #007bff;
            color: white;
            text-align: center;
            line-height: 60px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease; /* 过渡动画，让效果更平滑 */
            margin-bottom: 15px; /* 按钮之间的间距 */
        }

        /* 按钮hover效果：轻微放大+深色背景 */
        .float-btn:hover {
            transform: scale(1.1);
            background-color: #0056b3;
        }

        /* 联系信息面板：默认隐藏，hover时左滑显示 */
        .contact-panel {
            position: absolute;
            top: 0;
            right: 70px; /* 初始位置在头像右侧，与头像间距10px */
            width: 120px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
            display: none; /* 默认隐藏 */
            transition: all 0.3s ease;
        }

        /* 头像按钮hover时，显示联系面板 */
        .avatar-btn:hover .contact-panel {
            display: block;
            right: 70px; /* 左滑到头像左侧（与头像边缘对齐） */
        }

        /* 二维码样式 */
        .qrcode {
            width: 120px;
            height: 120px;
            margin: 0 auto 10px;
            background-color: #eee; /* 占位背景，实际替换为真实二维码图片 */
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
        }
        .qrcode img{ display:block; max-width: 100%; }

        /* 电话号码样式 */
        .phone-number {
            text-align: center;
            color: #333;
            font-size: 14px;
            line-height: 1.5;
        }
        .phone-number a{ display:block; }

        /* 返回顶部按钮图标调整 */
        .back-to-top i {
            font-size: 28px;
        }
.process-detail .li {
  display: flex;
  flex-direction: row; /* 整体水平排列（图片 + 文字组） */
  align-items: flex-start; /* 顶部对齐，避免图片拉伸文字高度 */
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  flex: 1 1 33.333%; 
  min-width: 0; 
}

/* 图片容器：固定尺寸，居左 */
.process-detail .pic {
  height: 200px;
  width: 200px;
  margin-right: 15px;
  overflow: hidden;
}
.process-detail .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字组容器：内部垂直排列（intro 上，price 下） */
.process-detail .text-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上下两端对齐（intro 右上，price 右下） */
  flex: 1; /* 占满剩余宽度 */
}

/* intro 样式：默认即可 */
.process-detail .intro {
  /* 可根据需要添加样式，如 margin-bottom: 10px; */
}

/* price 样式：右对齐 + 强调样式 */
.process-detail .price {
  font-weight: bold;
  color: #c00;
  text-align: right; /* 右对齐，实现“右下”效果 */
}

/* 响应式：视口<768px时，每个项目占一行，文字组垂直排列 */
@media (max-width: 767px) {
  .process-detail .li {
    flex: 1 1 100%;
    flex-direction: column; /* 整体垂直排列（图片在上，文字组在下） */
    align-items: flex-start;
  }
  .process-detail .pic {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .process-detail .text-group {
    width: 100%;
  }
  .process-detail .price {
    text-align: left; /* 移动端左对齐更友好 */
  }
  .process-detail figure {
    flex: 1 1 100%;
  }
}

.process-detail h3{ padding-top: 30px; }
/* 每个 figure 项目：带边框 + 垂直居中 + 等宽分布 */
.process-detail figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* 内部文字水平居中 */
  justify-content: center; /* 垂直居中（可选） */
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  flex: 1 1 25%; /* 桌面端一行4个，可调整为33.333%（一行3个） */
  min-width: 0;
  margin: 0;
}

/* 图片容器：固定高度200px */
.process-detail figure img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* 文字说明：居中显示 */
.process-detail figcaption {
  text-align: center;
}


/* 自定义样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #333;
}

/* 轮播图样式 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: #fff;
}

footer a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* 标题样式 */
h2 {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007bff;
}
 .btn-group>.btn{ margin-bottom: -1px; }
/* 产品分类和工艺分类卡片样式 */
.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* 服务内容样式 */
.media {
    transition: all 0.3s ease;
}

.media:hover {
    transform: translateY(-5px);
}

/* 项目案例样式 */
.project-card {
    height: 100%;
}

/* 联系我们样式 */
#map {
    height: 400px;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* 现货中心和图片中心样式 */
.product-filter {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.product-item {
    margin-bottom: 2rem;
}

.product-item img {
    height: 250px;
    object-fit: cover;
}
.image img{ height: 550px; }
.image2 img{ height: 400px; }
.product-item .view{ cursor: pointer; }
#view{ position: fixed; width:100%; height: 100%; left: 0;bottom: 0; background: #000; z-index: 9999999; display:none; }
#view .close{position: absolute; right: 0; top: 0; z-index: 3; background: #c00; color: #fff; font-size: 36px; font-weight: 100; width:50px; height: 50px; display:inline-block; text-align: center; line-height: 50px; opacity: 0.7; }
#view .close:hover{ opacity: 1; }
#view img{ display:block; margin: auto; }
#view>div{ position: relative; }
#view .pn{ position: absolute; width:50%; height: 100%; top: 0; z-index: 1;}
#view .next{ right: 0; }
#view .prev{ left: 0; }
#view .side{ position: absolute; right: 0; top: calc(50% - 60px); z-index: 2;}
#view .side a{ display:block; height: 40px; line-height: 40px; text-align: center; background: #39f; color: #fff; margin-bottom: 2px; padding: 0 12px;}
#view .side a:hover{ background: #399; text-decoration: none; }
.product-info {
  padding: 1rem 0;
}

/* 项目进度样式 */
.progress-step {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.progress-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-step.completed::before {
    content: '✓';
}

.progress-step.current::before {
    content: '';
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.progress-step::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background-color: #e9ecef;
    transform: translateX(-50%);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

/* 服务详情页样式 */
.service-detail {
    margin-bottom: 3rem;
}

.service-detail h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.service-detail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* 项目详情页样式 */
.project-gallery img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* 相关产品和项目样式 */
.related-products, .related-projects {
    margin-top: 3rem;
}

.related-products h3, .related-projects h3 {
    margin-bottom: 1.5rem;
}

/* 3D展示样式 */
.model-viewer {
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 颜色选择器样式 */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.active {
    border: 2px solid #000;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    padding-right: 2.5rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
}

/* AI聊天窗口样式 */
.ai-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

.ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.ai-chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.ai-chat-message.ai {
    align-self: flex-start;
    background-color: #f1f1f1;
    border-radius: 18px 18px 18px 0;
    padding: 10px 15px;
}

.ai-chat-message.user {
    align-self: flex-end;
    background-color: #007bff;
    color: #fff;
    border-radius: 18px 18px 0 18px;
    padding: 10px 15px;
    margin-left: auto;
}

.ai-chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
}

.ai-chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.ai-chat-footer button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.custom-content-marker {
  position: relative;
  width: 25px;
  height: 34px;
}

.custom-content-marker img {
  width: 100%;
  height: 100%;
}

.custom-content-marker .close-btn {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 15px;
  height: 15px;
  font-size: 12px;
  background: #ccc;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 15px;
  box-shadow: -1px 1px 1px rgba(10, 10, 10, .2);
}

.custom-content-marker .close-btn:hover{
  background: #666;
}